﻿using System;
using FreeSql.DataAnnotations;

namespace Colorful.Furniture.PermissionManagement
{
    /// <summary>
    ///  权限api
    /// </summary>
    [Table(Name = "sys_permission_api")]
    public class SysPermissionApi
    {
        /// <summary>
        ///  id
        /// </summary>
        [Column(Name = "id", IsPrimary = true)]
        public Guid Id { get; set; }

        /// <summary>
        ///  接口编码
        /// </summary>
        [Column(Name = "api_id")]
        public Guid? ApiId { get; set; }

        /// <summary>
        ///  权限编码
        /// </summary>
        [Column(Name = "permission_id")]
        public Guid? PermissionId { get; set; }

        /// <summary>
        ///  权限
        /// </summary>
        public virtual SysPermission Permission { get; set; }
    }
}